function [  ] = GraphConfusionMatrices( avgConfusionMatrix, functionNames )
    [numClassifiers, numClasses] = size(avgConfusionMatrix)
    
    for i=1:numClassifiers
        confus = zeros(numClasses, numClasses);
        for j =1:numClasses
            classConfusion =  cell2mat(avgConfusionMatrix(i, j));
            confus(j, :) = classConfusion(2:numClasses+1, 2);
        end
        
        figure(i);
        bar(confus);
        set(gca,'XTickLabel',{'VEG', 'WIRE', 'POLE',  'GROUND', 'FACADE'});
        legend({'VEG', 'WIRE', 'POLE', 'GROUND', 'FACADE'});
        title(functionNames{i});
    end
end

